import request from "@/utils/request.js";

export function listCa(){
  return  request({
    url: '/webshop/customerAddress/list',
    method: 'get',
  })
}
export function listCustomerAddress(queryParams){
  return  request({
    url: '/webshop/customerAddress/listForPage',
    method: 'get',
    params: queryParams
  })
}
export function getCustomerAddress(id){
  return request({
    url: '/webshop/customerAddress/' + id,
    method: 'get',
  })
}

export function updateCustomerAddress(form){
  return request({
    url: '/webshop/customerAddress',
    method: 'put',
    data: form
  })
}
export function addCustomerAddress(form){
  return request({
    url: '/webshop/customerAddress',
    method: 'post',
    data: form
  })
}
export function delCustomerAddress(ids){
  return  request({
    url: '/webshop/customerAddress/' + ids,
    method: 'delete'
  })
}

